From 62915bfe24e4c93a3c1cc8816c50dbf26b8ebf83 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 6 Feb 2001 06:52:43 +0000 Subject: [PATCH] (kill-line): Doc fix. --- lisp/simple.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index d04a3b0091e..f4d03ff2226 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -2005,7 +2005,11 @@ To kill a whole line, when point is not at the beginning, type \ If `kill-whole-line' is non-nil, then this command kills the whole line including its terminating newline, when used at the beginning of a line with no argument. As a consequence, you can always kill a whole line -by typing \\[beginning-of-line] \\[kill-line]." +by typing \\[beginning-of-line] \\[kill-line]. + +If the buffer is read-only, Emacs will beep and refrain from deleting +the line, but put the line in the kill ring anyway. This means that +you can use this command to copy text from a read-only buffer." (interactive "P") (kill-region (point) ;; It is better to move point to the other end of the kill -- 2.30.2